Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(mfe): add env var indicating mfe proxy #9395

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

chris-olszewski
Copy link
Member

Description

MFE development tasks may want to know if there's a corresponding proxy that is being run. Just checking if the proxy is running is error prone since they're both persistent tasks and there's no consistent way to prevent the check from running before the proxy server is listening on the port.

We avoid needing to perform this check by setting an environment variable for each development task if there's an associated proxy task in the configuration. It is then up to the underlying task to alter it's behavior depending on the presence of this variable.

Testing Instructions

In a project with a MFE, run a development task and verify that TURBO_TASK_HAS_MFE_PROXY is set to true

Copy link

vercel bot commented Nov 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 6, 2024 4:26pm
8 Skipped Deployments
Name Status Preview Comments Updated (UTC)
examples-basic-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-designsystem-docs ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-gatsby-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-kitchensink-blog ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-native-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-svelte-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-tailwind-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm
examples-vite-web ⬜️ Ignored (Inspect) Nov 6, 2024 4:26pm

@chris-olszewski chris-olszewski marked this pull request as ready for review November 6, 2024 16:26
@chris-olszewski chris-olszewski requested a review from a team as a code owner November 6, 2024 16:26
@chris-olszewski chris-olszewski merged commit 180f547 into main Nov 6, 2024
40 checks passed
@chris-olszewski chris-olszewski deleted the olszewski/chore_add_turbo_mfe_proxy branch November 6, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants